/* HTML PPT 样式文件 - 科技风高级感设计 */

:root {
    --primary-green: #00ff88;
    --primary-green-dark: #00cc6a;
    --secondary-green: #39ff14;
    --accent-cyan: #00ffff;
    --dark-bg: #0a0a0a;
    --dark-surface: #1a1a1a;
    --dark-border: #333;
    --text-primary: #ffffff;
    --text-secondary: #cccccc;
    --shadow-glow: 0 0 20px rgba(0, 255, 136, 0.3);
    --shadow-strong: 0 8px 32px rgba(0, 0, 0, 0.4);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', 'SF Pro Display', system-ui, sans-serif;
    background: radial-gradient(ellipse at center, #1a1a1a 0%, #0a0a0a 70%);
    overflow: hidden;
    height: 100vh;
    color: var(--text-primary);
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(0, 255, 136, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(57, 255, 20, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(0, 255, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

/* ========== 核心PPT容器 - 齿轮动画系统 ========== */
.ppt-container {
    width: 100vw;
    height: 100vh;
    position: relative;
    overflow: hidden;
    perspective: 1000px;
}

.slide {
    width: 100vw;
    height: 100vh;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transform-origin: 85% 15%;
    transform: rotateY(-120deg) scale(0.8);
    transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide.active {
    opacity: 1;
    transform: rotateY(0deg) scale(1);
    z-index: 10;
}

.slide.prev {
    transform: rotateY(120deg) scale(0.8);
    z-index: 1;
}

.slide.next {
    transform: rotateY(-120deg) scale(0.8);
    z-index: 1;
}

.slide-content {
    width: 100vw;
    height: 100vh;
    background: linear-gradient(135deg, var(--dark-surface) 0%, rgba(26, 26, 26, 0.95) 100%);
    border: 1px solid rgba(0, 255, 136, 0.2);
    box-shadow: 
        var(--shadow-strong),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 0 0 1px rgba(0, 255, 136, 0.1);
    padding: 0;
    display: grid;
    grid-template-rows: auto 1fr;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.slide-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(45deg, transparent 30%, rgba(0, 255, 136, 0.03) 50%, transparent 70%),
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 98px,
            rgba(0, 255, 136, 0.03) 100px
        );
    pointer-events: none;
}

/* ========== 新布局样式系统 ========== */

/* 标题区域 */
.slide-header {
    padding: 40px 60px;
    text-align: center;
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.1) 0%, rgba(57, 255, 20, 0.05) 100%);
    border-bottom: 2px solid rgba(0, 255, 136, 0.3);
    position: relative;
    z-index: 2;
}

.slide-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-green), transparent);
    box-shadow: var(--shadow-glow);
}

.slide-title {
    font-size: 3.2em;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 15px;
    text-shadow: 0 0 20px rgba(0, 255, 136, 0.5);
    background: linear-gradient(135deg, var(--primary-green), var(--secondary-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.slide-subtitle {
    font-size: 1.4em;
    color: var(--text-secondary);
    font-weight: 300;
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.3);
}

/* 主体布局 - 新的2x2网格系统 */
.slide-body {
    flex: 1;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    padding: 30px 60px 60px;
    position: relative;
    z-index: 2;
}

.main-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.text-area {
    background: rgba(26, 26, 26, 0.8);
    border: 1px solid rgba(0, 255, 136, 0.2);
    border-radius: 15px;
    padding: 30px;
    box-shadow: var(--shadow-strong), var(--shadow-glow);
    backdrop-filter: blur(10px);
    flex: 1;
}

.interactive-components {
    display: grid;
    grid-template-rows: 1fr 1fr;
    gap: 20px;
}

/* ========== 交互组件样式 ========== */

/* 组件画廊 */
.component-gallery {
    background: rgba(26, 26, 26, 0.9);
    border: 1px solid rgba(0, 255, 136, 0.3);
    border-radius: 15px;
    padding: 20px;
    box-shadow: var(--shadow-strong), var(--shadow-glow);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.component-gallery::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 136, 0.1), transparent);
    animation: scanLine 3s ease-in-out infinite;
}

@keyframes scanLine {
    0%, 100% { left: -100%; }
    50% { left: 100%; }
}

.gallery-header {
    font-size: 1.1em;
    font-weight: 600;
    color: var(--primary-green);
    margin-bottom: 15px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.gallery-content {
    position: relative;
    height: 160px;
    overflow: hidden;
    border-radius: 10px;
    background: rgba(10, 10, 10, 0.5);
}

.gallery-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.5s cubic-bezier(0.4, 0.0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.gallery-item.active {
    opacity: 1;
    transform: scale(1);
}

.gallery-item img {
    max-width: 80%;
    max-height: 70%;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(0, 255, 136, 0.2);
}

.gallery-label {
    margin-top: 10px;
    font-size: 0.9em;
    color: var(--text-secondary);
}

.gallery-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 15px;
}

.gallery-btn {
    background: linear-gradient(135deg, var(--primary-green-dark), var(--primary-green));
    border: none;
    color: var(--dark-bg);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2em;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 255, 136, 0.3);
}

.gallery-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(0, 255, 136, 0.5);
}

.gallery-indicators {
    display: flex;
    gap: 8px;
}

.gallery-indicators .indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.gallery-indicators .indicator.active {
    background: var(--primary-green);
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
}

/* 可展开组件 */
.expandable-widget {
    background: rgba(26, 26, 26, 0.9);
    border: 1px solid rgba(0, 255, 136, 0.3);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-strong), var(--shadow-glow);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.expandable-widget.expanded {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50vw;
    height: 50vh;
    z-index: 1000;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), var(--shadow-glow);
}

.widget-header {
    padding: 15px 20px;
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.2), rgba(57, 255, 20, 0.1));
    border-bottom: 1px solid rgba(0, 255, 136, 0.3);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.widget-title {
    font-weight: 600;
    color: var(--primary-green);
    font-size: 1em;
}

.expand-btn {
    background: none;
    border: none;
    color: var(--primary-green);
    font-size: 1.2em;
    cursor: pointer;
    padding: 5px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.expand-btn:hover {
    background: rgba(0, 255, 136, 0.2);
    transform: scale(1.1);
}

.widget-content {
    padding: 20px;
    max-height: 200px;
    overflow-y: auto;
    transition: all 0.3s ease;
}

.expandable-widget.expanded .widget-content {
    max-height: calc(50vh - 100px);
}

/* 内容样式 */
.section-title {
    font-size: 1.8em;
    color: var(--primary-green);
    margin-bottom: 20px;
    position: relative;
    padding-left: 20px;
    font-weight: 700;
    text-shadow: 0 0 15px rgba(0, 255, 136, 0.6);
    background: linear-gradient(135deg, var(--primary-green), var(--secondary-green), var(--accent-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: brightness(1.2);
}

.section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary-green), var(--secondary-green), var(--accent-cyan));
    border-radius: 2px;
    box-shadow: 
        var(--shadow-glow),
        0 0 10px rgba(0, 255, 136, 0.8),
        inset 0 0 5px rgba(57, 255, 20, 0.5);
}

.section-title::after {
    content: '';
    position: absolute;
    left: -5px;
    top: 0;
    right: -20px;
    bottom: 0;
    background: linear-gradient(90deg, 
        rgba(0, 255, 136, 0.05) 0%, 
        rgba(57, 255, 20, 0.08) 50%, 
        rgba(0, 255, 255, 0.05) 100%);
    border-radius: 8px;
    z-index: -1;
    animation: titleGlow 3s ease-in-out infinite alternate;
}

@keyframes titleGlow {
    0% { 
        box-shadow: 0 0 5px rgba(0, 255, 136, 0.2);
        transform: scale(1);
    }
    100% { 
        box-shadow: 0 0 20px rgba(0, 255, 136, 0.4);
        transform: scale(1.01);
    }
}

/* 新的内容结构样式 */
.text-content .content-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(10, 10, 10, 0.5);
    border: 1px solid rgba(0, 255, 136, 0.1);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.text-content .content-item:hover {
    border-color: rgba(0, 255, 136, 0.3);
    box-shadow: 0 4px 15px rgba(0, 255, 136, 0.1);
    transform: translateY(-2px);
}

.content-icon {
    font-size: 1.5em;
    min-width: 30px;
    text-align: center;
    flex-shrink: 0;
}

.content-text {
    flex: 1;
}

.content-text h3 {
    color: var(--text-primary);
    font-size: 1.2em;
    margin-bottom: 8px;
    font-weight: 600;
}

.content-text p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
    font-size: 0.95em;
}

/* 画廊文本内容样式 */
.gallery-text-content {
    padding: 20px;
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: rgba(10, 10, 10, 0.3);
    border-radius: 8px;
}

.gallery-text-content h4 {
    color: var(--primary-green);
    font-size: 1.1em;
    margin-bottom: 10px;
    font-weight: 600;
}

.gallery-text-content p {
    color: var(--text-secondary);
    font-size: 0.9em;
    line-height: 1.4;
    margin: 0;
}

/* 兼容旧样式类名 */
.features-list .feature-item,
.problem-description .problem-item,
.achievements .achievement-item,
.future-plans .future-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(10, 10, 10, 0.5);
    border: 1px solid rgba(0, 255, 136, 0.1);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.features-list .feature-item:hover,
.problem-description .problem-item:hover,
.achievements .achievement-item:hover,
.future-plans .future-item:hover {
    border-color: rgba(0, 255, 136, 0.3);
    box-shadow: 0 4px 15px rgba(0, 255, 136, 0.1);
    transform: translateY(-2px);
}

.feature-icon,
.problem-icon,
.achievement-icon,
.future-icon {
    font-size: 1.5em;
    min-width: 30px;
    text-align: center;
}

.feature-content h3 {
    color: var(--text-primary);
    font-size: 1.2em;
    margin-bottom: 5px;
}

.feature-content p,
.problem-item p,
.achievement-item p,
.future-item p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* Demo按钮 */
.demo-section {
    margin-top: 30px;
    text-align: center;
}

.demo-button {
    background: linear-gradient(135deg, var(--primary-green), var(--secondary-green));
    color: var(--dark-bg);
    border: none;
    padding: 15px 30px;
    font-size: 1.1em;
    font-weight: 600;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0, 255, 136, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.demo-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 255, 136, 0.5);
}

.demo-icon {
    font-size: 1.2em;
}

/* 技术亮点 */
.tech-highlight {
    margin-bottom: 15px;
    padding: 10px;
    border-left: 3px solid var(--primary-green);
    background: rgba(0, 255, 136, 0.05);
    border-radius: 5px;
}

.tech-highlight h4 {
    color: var(--primary-green);
    margin-bottom: 5px;
    font-size: 1em;
}

.tech-highlight p {
    color: var(--text-secondary);
    margin: 0;
    font-size: 0.9em;
}

/* 联系信息 */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-secondary);
    font-size: 0.9em;
}

.contact-icon {
    font-size: 1.2em;
    color: var(--primary-green);
}

.slide-1 .content-right {
    flex: 0.8;
    display: flex;
    align-items: center;
    justify-content: center;
}

.section-title {
    font-size: 2em;
    color: #2c3e50;
    margin-bottom: 20px;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 50px;
    height: 3px;
    background: #667eea;
}

.problem-description p {
    font-size: 1.2em;
    line-height: 1.8;
    margin-bottom: 15px;
    color: #34495e;
}

.slide-image {
    max-width: 100%;
    max-height: 400px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* 第二页特殊样式 */
.slide-2 .slide-body {
    flex-direction: column;
}

.solution-overview {
    flex: 1;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.feature-item {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    padding: 25px;
    border-radius: 15px;
    border-left: 5px solid #667eea;
    transition: transform 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.feature-item h3 {
    color: #2c3e50;
    font-size: 1.4em;
    margin-bottom: 10px;
}

.feature-item p {
    color: #6c757d;
    line-height: 1.6;
}

.demo-section {
    margin-top: 30px;
    padding: 30px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 15px;
    text-align: center;
}

.demo-placeholder h3 {
    color: white;
    font-size: 2em;
    margin-bottom: 10px;
}

.demo-placeholder p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2em;
    margin-bottom: 20px;
}

.demo-button {
    background: white;
    color: #667eea;
    border: none;
    padding: 15px 30px;
    font-size: 1.1em;
    font-weight: 600;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.demo-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* 第三页特殊样式 */
.slide-3 .slide-body {
    gap: 50px;
}

.summary-left {
    flex: 1.2;
}

.summary-right {
    flex: 0.8;
}

.achievements ul,
.future-plans ul {
    list-style: none;
    margin-top: 20px;
}

.achievements li,
.future-plans li {
    font-size: 1.1em;
    line-height: 1.8;
    margin-bottom: 10px;
    padding-left: 30px;
    position: relative;
    color: #34495e;
}

.achievements li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #27ae60;
    font-weight: bold;
    font-size: 1.2em;
}

.future-plans li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: #667eea;
    font-weight: bold;
    font-size: 1.2em;
}

.team-section,
.contact-section {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 15px;
    margin-bottom: 20px;
    border-left: 5px solid #667eea;
}

.team-info p,
.contact-section p {
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 8px;
}

/* ========== 导航组件 - 科技风格 ========== */
.slide-indicator {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    z-index: 1000;
    background: rgba(26, 26, 26, 0.8);
    padding: 15px 25px;
    border-radius: 25px;
    border: 1px solid rgba(0, 255, 136, 0.3);
    box-shadow: var(--shadow-strong), var(--shadow-glow);
    backdrop-filter: blur(10px);
}

.indicator-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 255, 136, 0.2);
    box-shadow: 0 0 5px rgba(0, 255, 136, 0.2);
}

.indicator-dot.active {
    background: var(--primary-green);
    transform: scale(1.3);
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.6);
    border-color: var(--primary-green);
}

.indicator-dot:hover {
    background: rgba(0, 255, 136, 0.5);
    transform: scale(1.1);
}

.navigation-hint {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(26, 26, 26, 0.9);
    color: var(--text-secondary);
    padding: 12px 18px;
    border-radius: 10px;
    font-size: 0.9em;
    z-index: 1000;
    border: 1px solid rgba(0, 255, 136, 0.2);
    box-shadow: var(--shadow-strong);
    backdrop-filter: blur(10px);
}

/* ========== 响应式设计 ========== */
@media (max-width: 768px) {
    .slide-header {
        padding: 30px 20px;
    }
    
    .slide-title {
        font-size: 2.2em;
    }
    
    .slide-subtitle {
        font-size: 1.1em;
    }
    
    .slide-body {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 20px;
    }
    
    .interactive-components {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto;
    }
    
    .section-title {
        font-size: 1.5em;
        padding-left: 15px;
    }
    
    .section-title::after {
        left: -3px;
        right: -15px;
    }
    
    .text-area {
        padding: 20px;
    }
    
    .expandable-widget.expanded {
        width: 90vw;
        height: 70vh;
    }
    
    .gallery-content {
        height: 120px;
    }
    
    .slide-indicator {
        bottom: 20px;
        padding: 10px 20px;
    }
    
    .navigation-hint {
        top: 10px;
        right: 10px;
        font-size: 0.8em;
        padding: 8px 12px;
    }
}

@media (max-width: 480px) {
    .slide-title {
        font-size: 1.8em;
    }
    
    .slide-body {
        padding: 15px;
    }
    
    .text-area {
        padding: 15px;
    }
    
    .section-title {
        font-size: 1.3em;
        padding-left: 12px;
    }
    
    .section-title::after {
        left: -2px;
        right: -10px;
    }
    
    /* 在小屏幕上减少动画强度 */
    @keyframes titleGlow {
        0% { 
            box-shadow: 0 0 3px rgba(0, 255, 136, 0.15);
            transform: scale(1);
        }
        100% { 
            box-shadow: 0 0 8px rgba(0, 255, 136, 0.25);
            transform: scale(1.005);
        }
    }
    
    .feature-item,
    .problem-item,
    .achievement-item,
    .future-item {
        padding: 10px;
        gap: 10px;
    }
    
    .feature-icon,
    .problem-icon,
    .achievement-icon,
    .future-icon {
        font-size: 1.2em;
        min-width: 25px;
    }
}

/* ========== 文字自适应防溢出 ========== */
.editable {
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

/* 确保内容不会超出容器 */
.slide-content {
    overflow: hidden;
}

.slide-body {
    overflow: hidden;
}


